package com.wey;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.net.InetAddress;
import java.net.UnknownHostException;


@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.wey.mapper")
public class AuthApplication {

    public static void main(String[] args) {
        InetAddress localhost;
        try {
            localhost = InetAddress.getLocalHost();
        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        }
        SpringApplication.run(AuthApplication.class);
        System.out.println("wey-auth启动成功!");
        System.out.println("http://"+localhost.getHostAddress() + ":" + 8012 + "/swagger-ui.html");
    }

}
